Search
FlowChart.SetPolyShapeArray Method
See Also
 



Sets default shape for new boxes of type bsPolygon.

 Syntax

VB6  Copy Code

Public Sub SetPolyShapeArray( _
    ByRef psaPoints() As Byte _
)

C++  Copy Code

public:
void SetPolyShapeArray (
    unsigned char** psaPoints
)

 Parameters

psaPoints
An array containing the points coordinates of the custom shape.

 Remarks

Call this method to set the default shape for the new boxes of type bsPolygon. You can define whatever custom polygonal form you need and use it. The psaPoints parameter - array of bytes the (x, y) coordinates are passed as percents of the rectangle bounding the form.

You can define as complex shapes as you need.

 Example

To pass a rectangle use the following array: {0, 0, 100, 0, 100, 100, 0, 100}. To pass a rhombus use: {50, 0, 100, 50, 50, 100, 0, 50}. If the user places this rhombus on position with bounding rectangle (100, 100) - (300, 200) then the rhombus points calculated from the percent array will be (200, 100) - (300, 150) - (200, 200) - (100, 150).

The following C# code illustrates the use of this method:

C#  Copy Code

System.Array points = new byte[] { 0, 0, 10, 10, 90, 10, 100, 0, 100, 100, 50, 100 };

axFlowChart1.BoxStyle = FLOWCHARTLib.EBoxStyle.bsPolygon;
axFlowChart1.SetPolyShapeArray(ref points);

 See Also